package com.haiyi.activiti.engine.exception;

import com.haiyi.activiti.engine.framework.ruleengine.Stream;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/12/7 8:55 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public class RuleVaildResultException extends RuleException {

    private Stream stream;

    public RuleVaildResultException(Stream stream){
        super(stream.getErrorMsg());
        this.stream = stream;
    }

    public RuleVaildResultException(Stream stream,String msg){
        super(msg);
        this.stream = stream;
    }

    public Stream getStream() {
        return stream;
    }
}
